<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .box1{
            width: 300px;
            height: 300px;
            border: 1px black solid;
            margin: 30px auto;
        }
        /*.box2{*/
            /*width: 100px;*/
            /*height: 100px;*/
            /*background: red;*/
            /*animation-name: mybox ;*/
            /*animation-duration: 4s;*/
            /*animation-iteration-count: 3;*/
            /*animation-timing-function: linear;*/
        /*}*/
        .box2{
            width: 100px;
            height: 100px;
            background: red;
            animation: mybox 4s 2s 3 linear;

        }
        @keyframes mybox{
            0%{transform: translate(0,0);}
            25%{transform: translate(200px,0)}
            50%{transform: translate(200px,200px)}
            75%{transform: translate(0,200px)}
            100%{transform: translate(0,0)}
        }
    </style>
</head>
<body>
<div class="box1">
    <div class="box2">
    </div>
</div>

</body>
</html>